﻿ #region Disclaimer/Info
 
 /////////////////////////////////////////////////////////////////////////////////////////////////
 //
 //   File:		AreaAwareViewLocation.cs
 //   Website:		http://dexterblogengine.com/
 //   Authors:		http://dexterblogengine.com/About.ashx
 //   Rev:		1
 //   Created:		19/01/2011
 //   Last edit:		19/01/2011
 //   License:		GNU Library General Public License (LGPL)
 // 
 //   For updated news and information please visit http://dexterblogengine.com/
 //   Dexter is hosted to Codeplex at http://dexterblogengine.codeplex.com
 //   For any question contact info@dexterblogengine.com
 //
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
 #endregion

using System.Globalization;
using Dexter.Web.Mvc.ViewEngines;

namespace Dexter.Web.Mvc.ViewEngines {
	internal class AreaAwareViewLocation : ViewLocation {
		public AreaAwareViewLocation ( string virtualPathFormatString )
			: base ( virtualPathFormatString ) {}

		public override string Format ( string viewName , string controllerName , string areaName , string themeName ) {
			return string.Format ( CultureInfo.InvariantCulture , VirtualPathFormatString , new object[] {viewName , controllerName , areaName} );
		}
	}
}
